import request from '@/utils/request'

// 查询鸟情附件列表
export function listAvsattach(query) {
  return request({
    url: '/baseinfo/avsattach/list',
    method: 'get',
    params: query
  })
}

// 查询鸟情附件详细
export function getAvsattach(avsattachid) {
  return request({
    url: '/baseinfo/avsattach/' + avsattachid,
    method: 'get'
  })
}

// 新增鸟情附件
export function addAvsattach(data) {
  return request({
    url: '/baseinfo/avsattach',
    method: 'post',
    data: data
  })
}

// 修改鸟情附件
export function updateAvsattach(data) {
  return request({
    url: '/baseinfo/avsattach',
    method: 'put',
    data: data
  })
}

// 删除鸟情附件
export function delAvsattach(avsattachid) {
  return request({
    url: '/baseinfo/avsattach/' + avsattachid,
    method: 'delete'
  })
}
